Fix debug code.

Akinori MUSHA 10 years ago
parent
commit
c138a49824
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/agents/_action_menu.html.erb

+ 1 - 1
app/views/agents/_action_menu.html.erb

@@ -67,7 +67,7 @@
67 67
       </div>
68 68
       <div class="modal-footer">
69 69
         <%= form_for(agent, as: :agent, url: agent_path(agent, return: returnTo), method: 'PUT') do |f| %>
70
-          <% if agent.can_receive_events? || true %>
70
+          <% if agent.can_receive_events? %>
71 71
             <div class="form-group">
72 72
               <%= check_box_tag check_box_id = "agent#{agent.id}_drop_pending_events", 'true', false, name: :drop_pending_events %>
73 73
               <%= label_tag check_box_id, 'Drop pending events' %>